<?php
/**
 * Created by PhpStorm.
 * User: robot
 * Date: 2018-04-21
 * Time: 14:36
 */

namespace app\base\model;


use think\Model;

class Article extends Model
{
    public function getUseridAttr($value)
    {
        return User::get($value)->username;
    }

    public function getSortAttr($value)
    {
        return Sort::get($value)->sortname;
    }

}